/**
 * jims
 */
package com.jims.master.modules.reg.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Entity
 * @author 刘方舟
 * @version 2017-02-27
 */
public class ClinicForRegist extends DataEntity<ClinicForRegist> {
	
	private static final long serialVersionUID = 1L;
	private Date clinicDate;		// 就诊日期
	private String clinicIndexId;		// 所属号别
	private String timeDesc;		// 时间描述
	private String limitNum;		// 限号数
	private String limitPreNum;		// 限预约号数
	private String currentNum;		// 当前号
	private String currentRegisNum;		// 当日已挂号数
	private String currentPreNum;		// 已预约号数

	private String clinicLabel;//号别名称
	private String deptId;//科室
	private String doctorId;//所属医生
	private String price;//价格
	private String clinicDateStr;

    private String clinicSchedulesIds;//出诊安排ids
    private String startTime;//生成号表开始日期
    private String endTime;//生成号表结束日期
    private String clinicIndexName;
    private String dayOfWeek;
    private String timeDescTrans;
    private String clinicForRegistIds;//dai删除号表的ids

    private String inputCode; //号别简称


    public String getTimeDescTrans() {
        return timeDescTrans;
    }

    public void setTimeDescTrans(String timeDescTrans) {
        this.timeDescTrans = timeDescTrans;
    }

    public String getDayOfWeek() {
        return dayOfWeek;
    }

    public void setDayOfWeek(String dayOfWeek) {
        this.dayOfWeek = dayOfWeek;
    }

    public String getClinicIndexName() {
        return clinicIndexName;
    }

    public void setClinicIndexName(String clinicIndexName) {
        this.clinicIndexName = clinicIndexName;
    }

    public String getClinicSchedulesIds() {
        return clinicSchedulesIds;
    }

    public void setClinicSchedulesIds(String clinicSchedulesIds) {
        this.clinicSchedulesIds = clinicSchedulesIds;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public ClinicForRegist() {
		super();
	}

	public ClinicForRegist(String id){
		super(id);
	}

    public String getClinicDateStr() {
        return clinicDateStr;
    }

    public void setClinicDateStr(String clinicDateStr) {
        this.clinicDateStr = clinicDateStr;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="就诊日期不能为空")

	public Date getClinicDate() {
		return clinicDate;
	}

	public void setClinicDate(Date clinicDate) {
		this.clinicDate = clinicDate;
	}
	
	@Length(min=1, max=64, message="所属号别长度必须介于 1 和 64 之间")
	public String getClinicIndexId() {
		return clinicIndexId;
	}

	public void setClinicIndexId(String clinicIndexId) {
		this.clinicIndexId = clinicIndexId;
	}
	
	@Length(min=0, max=10, message="时间描述长度必须介于 0 和 10 之间")
	public String getTimeDesc() {
		return timeDesc;
	}

	public void setTimeDesc(String timeDesc) {
		this.timeDesc = timeDesc;
	}
	
	@Length(min=0, max=11, message="限号数长度必须介于 0 和 11 之间")
	public String getLimitNum() {
		return limitNum;
	}

	public void setLimitNum(String limitNum) {
		this.limitNum = limitNum;
	}
	
	@Length(min=0, max=11, message="限预约号数长度必须介于 0 和 11 之间")
	public String getLimitPreNum() {
		return limitPreNum;
	}

	public void setLimitPreNum(String limitPreNum) {
		this.limitPreNum = limitPreNum;
	}
	
	@Length(min=0, max=11, message="当前号长度必须介于 0 和 11 之间")
	public String getCurrentNum() {
		return currentNum;
	}

	public void setCurrentNum(String currentNum) {
		this.currentNum = currentNum;
	}
	
	@Length(min=0, max=11, message="当日已挂号数长度必须介于 0 和 11 之间")
	public String getCurrentRegisNum() {
		return currentRegisNum;
	}

	public void setCurrentRegisNum(String currentRegisNum) {
		this.currentRegisNum = currentRegisNum;
	}
	
	@Length(min=0, max=11, message="已预约号数长度必须介于 0 和 11 之间")
	public String getCurrentPreNum() {
		return currentPreNum;
	}

	public void setCurrentPreNum(String currentPreNum) {
		this.currentPreNum = currentPreNum;
	}
	
	@Length(min=1, max=64, message="机构ID长度必须介于 1 和 64 之间")
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getClinicLabel() {
		return clinicLabel;
	}

	public void setClinicLabel(String clinicLabel) {
		this.clinicLabel = clinicLabel;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDoctorId() {
		return doctorId;
	}

	public void setDoctorId(String doctorId) {
		this.doctorId = doctorId;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

    public String getClinicForRegistIds() {
        return clinicForRegistIds;
    }

    public void setClinicForRegistIds(String clinicForRegistIds) {
        this.clinicForRegistIds = clinicForRegistIds;
    }

    @Override
    public String getInputCode() {
        return inputCode;
    }

    @Override
    public void setInputCode(String inputCode) {
        this.inputCode = inputCode;
    }
}